import { addFile, addExcel } from "@/api/File";
import { defineStore } from "pinia";


export const useDataStore = defineStore("dataStore",{
    state:()=>({

    }),
    actions:{
        async sendFile(data) {
            return await addFile(data).then(res=>{
                return res.data;
            }).catch(err=>{
                console.log(err);
                
            })
        },
        async sendExcel(data) {
            return await addExcel(data).then(res=>{
                return res.data;
            }).catch(err=>{
                console.log(err);
                
            })
        }
    }

})